package com.qiniu.githubdata.entity.neo;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.HashSet;
import java.util.Set;

@Node("Developer")
@Data
public class DeveloperNode {
    @Id
    private Long id;
    private String login;
    private String nation;
    private Integer nationConfidence;
    // private Double talentRank;
    
    @Relationship(type = "FOLLOWS")
    private Set<DeveloperNode> followers = new HashSet<>();
    @Relationship(type = "CONTRIBUTED_TO")
    private Set<ContributionRelation> contributions = new HashSet<>();
}